package com.sand.feign;

import com.sand.entity.inventory.inventory;
import com.sand.result.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("juao-inventory")
public interface InventoryFeign {

    /**
     * 根据合同扣减库存
     */
    @PostMapping("/inventory/subtract")
    public ResponseResult<Integer> subtract(@RequestBody Integer contractid);

}
